@Topic
Como eu tinha dito, o NPC Professor Burton está bugado.
Refiz ele e ta ai pra quem quiser:
30% de Creditos pro Slicer pq copiei parte do codigo do npc dele.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT
if(msgcontains(msg, 'help')) then
selfSay('Hello, Im professor burton and i study pokemon evolutions. Would you like some help to evolve your pokemons?', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
selfSay('Ok i can give you one {water}, {leaf}, {heart}, {coccon} or {venom} stone. You can choose only one, what will it be?', cid)
talkState[talkUser] = 2
elseif (msgcontains(msg, 'water') and talkState[talkUser] == 2) then
selfSay('Water stones are used to evolve water pokemons, but i can only give water stones to players at level 20 or higher, with at least 12 pokemon registred on your pokedex, do you have those requirements?', cid)
talkState[talkUser] = 4
elseif (msgcontains(msg, 'leaf') and talkState[talkUser] == 2) then
selfSay('Leaf stones evolve grass pokemon. You need to be level 18 and have at least 10 pokemons registrations in your pokedex, do you have these requirements?', cid)
talkState[talkUser] = 5
elseif (msgcontains(msg, 'coccon') and talkState[talkUser] == 2) then
selfSay('Coccon stones are very common and they evolve bug pokemons, the only requirement is to be level 15, are you at this level?', cid)
talkState[talkUser] = 6
elseif (msgcontains(msg, 'heart') and talkState[talkUser] == 2) then
selfSay('Heart stones evolve either flying or normal pokemon, and you gotta be level 20 with 12 pokemon registrations in your pokedex, are you ok with that?', cid)
talkState[talkUser] = 7
elseif (msgcontains(msg, 'venom') and talkState[talkUser] == 2) then
selfSay('Ah, venom, used to evolve poison pokemons, this isnt the rarest stone but its used only with strong pokemons, you need level 28 and 18 pokemons registrations in your pokedex to get this stone, fine?', cid)
talkState[talkUser] = 8
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 4) then
if getPlayerStorageValue(cid, 200) ~= 1 then
local unlock = 0
for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(cid, oldpokedex[1]).dex then
unlock = unlock + 1
end
end
if unlock >= 12 and getPlayerLevel(cid) >= 20 then
selfSay("Oh, Good! Get this water stone.", cid)
doPlayerAddItem(cid,11442,1)
setPlayerStorageValue(cid, 200, 1)
else
selfSay("You don't have level 20 or You haven't 12 pokemons in your pokedex yet, come back when you do that...", cid)
talkState[cid] = 0
return true
end
else
selfSay("I already give you a stone.", cid)
talkState[cid] = 0
return true
end
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 5) then
if getPlayerStorageValue(cid, 200) ~= 1 then
local unlock = 0
for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(cid, oldpokedex[1]).dex then
unlock = unlock + 1
end
end
if unlock >= 10 and getPlayerLevel(cid) >= 18 then
selfSay("Oh, Good! Get this leaf stone.", cid)
doPlayerAddItem(cid,11441,1)
setPlayerStorageValue(cid, 200, 1)
else
selfSay("You don't have level 18 or You haven't 10 pokemons in your pokedex yet, come back when you do that...", cid)
talkState[cid] = 0
return true
end
else
selfSay("I already give you a stone.", cid)
talkState[cid] = 0
return true
end
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 6) then
if getPlayerStorageValue(cid, 200) ~= 1 then
local unlock = 0
for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(cid, oldpokedex[1]).dex then
unlock = unlock + 1
end
end
if unlock >= 0 and getPlayerLevel(cid) >= 15 then
selfSay("Oh, Good! Get this coccon stone.", cid)
doPlayerAddItem(cid,11448,1)
setPlayerStorageValue(cid, 200, 1)
else
selfSay("You don't have level 15 yet, come back when you do that...", cid)
talkState[cid] = 0
return true
end
else
selfSay("I already give you a stone.", cid)
talkState[cid] = 0
return true
end
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 7) then
if getPlayerStorageValue(cid, 200) ~= 1 then
local unlock = 0
for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(cid, oldpokedex[1]).dex then
unlock = unlock + 1
end
end
if unlock >= 12 and getPlayerLevel(cid) >= 20 then
selfSay("Oh, Good! Get this heart stone.", cid)
doPlayerAddItem(cid,11453,1)
setPlayerStorageValue(cid, 200, 1)
else
selfSay("You don't have level 20 or You haven't 12 pokemons in your pokedex yet, come back when you do that...", cid)
talkState[cid] = 0
return true
end
else
selfSay("I already give you a stone.", cid)
talkState[cid] = 0
return true
end
elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 8) then
if getPlayerStorageValue(cid, 200) ~= 1 then
local unlock = 0
for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(cid, oldpokedex[1]).dex then
unlock = unlock + 1
end
end
if unlock >= 18 and getPlayerLevel(cid) >= 28 then
selfSay("Oh, Good! Get this venom stone.", cid)
doPlayerAddItem(cid,11443,1)
setPlayerStorageValue(cid, 200, 1)
else
selfSay("You don't have level 28 or You haven't 18 pokemons in your pokedex yet, come back when you do that...", cid)
talkState[cid] = 0
return true
end
else
selfSay("I already give you a stone.", cid)
talkState[cid] = 0
return true
end
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())










info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino
@betinhowz666 esse mapa é totalmente seu, mais eu to editando ele agr para por hunts de johto.
Créditos Do Mapa: Betinhowz666